(function(){
	let Bird = window.Bird = function(){
		this.w = 48;
		this.h = 48;
		this.x = 50;
		this.y = game.canvas.height * 0.75 / 2 - 24;
		this.flag = 1;
		this.a = 0.08;
		this.dropf = 0;
		this.posturesArr = [game.R.bird0_0,game.R.bird0_1,game.R.bird0_2]
	}
	
	Bird.prototype.fly = function(){
		if(game.isJump){
			this.y -= this.dropf
			this.dropf++;
		}else{
			this.y += this.a * this.dropf;
			this.dropf++;
		}
		game.ctx.drawImage(this.posturesArr[this.flag % 3],this.x, this.y);
		
		if(game.fno % 10 == 0){	
			this.flag++;
		}
	}
})();